import {get} from '../get'
import {request} from '../request'

export const getDataDict = () => {
  return get.get(`/sysmanage/datadict`)
}

export const createDataDict = (data) => {
  return request.post('/api/dictionary ', {
    params: data
  })
}

export const deleteTree = (data) => {
  return request.delete(`/api/dictionary`, {
    params: data
  })
}

export const GetCompany = () => {
  return get.get('/sysmanage/companystructure')
}

export const CreateCompanyTree = (data) => {
  return request('/api/company_tree', {
    params: data
  })
}
export const deleteTree2 = (companyCode) => {
  return request(`/api/company_tree/${companyCode}`, {
    params: companyCode
  })
}
export const GetName = () => {
  return get.get('/public/getUname')
}

